from selenium.webdriver.common.by import By

from page_object.pages.BasePage import BasePage
from page_object.pages.MakeOrderPage import MakeOrderPage


class PeiWanDetailPage(BasePage):
    # 陪玩详情页面
    _tv_buy = (By.ID, 'tv_buy')
    def go_to_make_order_page(self):
        '''
        去下单页
        :return:下单页
        '''
        self.find(self._tv_buy).click()
        return MakeOrderPage()